<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配置首页店铺图片 - 红高粱</title>
<%@ include file="/WEB-INF/jsp/common/res.jsp"%>
<link href="<c:url value="/scripts/jquery/validate/css/validate.css"/>" rel="stylesheet"/>
<script type="text/javascript" src="<c:url value="/scripts/jquery/validate/jquery.validate.min.js"/>"></script> 
<script type="text/javascript" src="<c:url value="/widgets/kindeditor/kindeditor.js"/>"></script>
<script type="text/javascript" src="<c:url value="/widgets/kindeditor/lang/zh_CN.js"/>"></script>
<script type="text/javascript" src="<c:url value="/scripts/config/configIndexImage.js"/>"></script>
<style type="text/css">
#_config{background-color: #0087d8;} 
.text{width:300px;height:20px;color:#666;}
.menu{text-align:center;padding:4px;padding-right:5px;width: 300px;}
#img{cursor: pointer;}
.main_in{padding:20px 20px; width:500px; float:left;}
.main_out{width:320px; float:left;padding:40px 50px; }
.main_out iframe{ border:none;}
#img_display{ margin:20px 60px;}

</style>
</head>
<body>
	<%@ include file="/WEB-INF/jsp/common/header.jsp"%>
	<div class="main_title">
		<div class="main_title2"><span>当前位置：配置管理 &gt; 修改首页店铺图片</span></div>
	</div>
	<div class="main_content">
			<div class="main_menu">
				<ul>
					<!--  <li class="choice"><a href="<c:url value="/config/query/frontRestaurant"/>">修改首页店铺图片</a></li>
					<li><a href="<c:url value="/config/query/frontActivity"/>">修改首页活动图片</a></li>
					<li ><a href="<c:url value="/config/query/frontMember"/>">修改首页会员图片</a></li>
					<li><a href="<c:url value="/config/query/frontTitle"/>">修改首页标题</a></li>
					li><a href="<c:url value="/config/query/yjdh"/>">修改一键导航</a></li>
					<li><a href="<c:url value="/config/query/yjbh"/>">修改一键拨号</a></li>
					<li><a href="<c:url value="/config/query/showMenuPlugin"/>">修改菜单插件</a></li
										<li ><a href="<c:url value="/config/query/pay"/>">修改支付参数</a></li>-->
					<li><a href="<c:url value="/config/query/wcpay"/>">配置微信支付</a></li>
				</ul>
			</div>
			<div class="main_list">
				<div class="main_out">
					<iframe width="320px" height="616px" 
						src='<%=request.getContextPath()%>/index.html'>
					</iframe>
				</div>
			  <div class="main_in">
			  
					<form action="<c:url value="/config/edit/frontRestaurant"/>" method="post" id="configImageForm">
						<p>
							<label>首页店铺图片<span class="red">*&nbsp(图片大小不能超过1M，规格为640*340)</span></label>
							<input type="hidden" name="configValue" id="configValue" value="${frontRestaurant }"/>
							<input type="hidden" name="id" id="configId" value="${configId }"/>
								<c:if test="${frontRestaurant eq ''}">
									<img src="" style="width:320px;height:auto;display:none;" />
									<input type="button" id="image_upload" style="" class="btn" value="上传" />
									<input type="button" id="image_update" style="display: none;" class="btn" value="修改" />
								</c:if>
								<br />
								<c:if test="${frontRestaurant != ''}">
									<img src="${frontRestaurant}" id="img_display" style="width:320px;height:auto;" /><br />
									<input type="button" id="image_upload" style="display:none;" class="btn" value="上传" />
									<input type="button" id="image_update" style="" class="btn" value="修改" />
								</c:if>
								<input type="hidden" name="customerId" id="customerId" value="${customerId }"/>
								<input type="submit" value="保存" class="btn" />
								<input type="reset" value="重置" id="reset" class="btn" />
						</p>
						<p>
							
						</p>
					</form>
					
					
				</div>
				
			</div>
	</div>
</body>
</html>